package com.test.model.facade;

public class AudioSystemFacade {
    private AudioPlayer audioPlayer;
    private AudioRecorder audioRecorder;

    public AudioSystemFacade(AudioPlayer audioPlayer, AudioRecorder audioRecorder) {
        this.audioPlayer = audioPlayer;
        this.audioRecorder = audioRecorder;
    }

    public void startPlayingAudio() {
        audioPlayer.play();
    }

    public void stopPlayingAudio() {
        audioPlayer.stop();
    }

    public void startRecordingAudio() {
        audioRecorder.record();
    }

    public void stopRecordingAudio() {
        audioRecorder.stop();
    }
}
